package ui;

import javax.swing.*;
import java.awt.*;

/**
 * @author 何惠民
 */
public class LayerBackGround extends Layer {


    public LayerBackGround(int x, int y, int w, int h) {
        super(x, y, w, h);
    }

    @Override
    public void paint(Graphics g)
    {
        int bgIdx = this.dto.getNowlevel() % Img.BG_LIST.size();
        g.drawImage(Img.BG_LIST.get(bgIdx),0,0,1162,654,null);
    }
}
